package com.tudouji.project.farmer.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 种植订单对象 farmerorder
 * 
 * @author tudouji
 * @date 2021-04-25
 */
public class Farmerorder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String guid;

    /** 种植户 */
    private String farmerid;

    /** 批次编号 */
    private String orderbatchguid;

    /** 主管部门(冗余批次所属部门) */
    private String departmentguid;

    /** 订单年份 */
    @Excel(name = "订单年份")
    private Integer yearoforder;

    /** 订单名称 */
    private String name;

    /** 种植面积 */
    @Excel(name = "种植面积")
    private String orderarea;

    /** 类型 */
    private Integer type;

    /** 种植品种 */
    @Excel(name = "种植品种")
    private String productname;

    /** 种薯销售数量 */
    @Excel(name = "种薯数量")
    private BigDecimal seedweight;

    /** 农药销售数量 */
    @Excel(name = "农药数量")
    private BigDecimal pestweight;

    /** 化肥销售数量 */
    @Excel(name = "化肥数量")
    private BigDecimal fertweight;

    /** 订单签订负责人 */
    private String orderownerid;

    /** 订单负责人姓名 */
    @Excel(name = "订单负责人")
    private String orderownername;

    /** 种植过程负责人id */
    private String plantownerid;

    /** 种植过程负责人姓名 */
    private String plantownername;

    /** 订单状态 */
    private Integer status;

    /** 创建人 */
    private String operatorid;

    /** 订单编号 */
    private String code;

    /** 最后更新时间 */
    private Date lastupdate;

    private Date createtime;

    private String search;

    private String[] departids;

    private String department;

    @Excel(name = "类型")
    private String typename;
    @Excel(name = "状态")
    private String statusname;

    @Excel(name = "种植户")
    private String farmer;//种植户名称
    @Excel(name = "批次")
    private String batchname;

    @Excel(name = "自有仓库", readConverterExp="0=无,''=无", defaultValue = "有")
    private Integer storecapcity;

    @Excel(name = "电话")
    private String telphone;

    private Integer batchstatus;

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = search;
    }

    public String[] getDepartids() {
        return departids;
    }

    public void setDepartids(String[] departids) {
        this.departids = departids;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getTypename() {
        return typename;
    }

    public void setTypename(String typename) {
        this.typename = typename;
    }

    public String getStatusname() {
        return statusname;
    }

    public void setStatusname(String statusname) {
        this.statusname = statusname;
    }

    public String getFarmer() {
        return farmer;
    }

    public void setFarmer(String farmer) {
        this.farmer = farmer;
    }

    public String getBatchname() {
        return batchname;
    }

    public void setBatchname(String batchname) {
        this.batchname = batchname;
    }

    public Integer getStorecapcity() {
        return storecapcity;
    }

    public void setStorecapcity(Integer storecapcity) {
        this.storecapcity = storecapcity;
    }

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public Integer getBatchstatus() {
        return batchstatus;
    }

    public void setBatchstatus(Integer batchstatus) {
        this.batchstatus = batchstatus;
    }

    public void setGuid(String guid)
    {
        this.guid = guid;
    }

    public String getGuid() 
    {
        return guid;
    }
    public void setFarmerid(String farmerid) 
    {
        this.farmerid = farmerid;
    }

    public String getFarmerid() 
    {
        return farmerid;
    }
    public void setOrderbatchguid(String orderbatchguid) 
    {
        this.orderbatchguid = orderbatchguid;
    }

    public String getOrderbatchguid() 
    {
        return orderbatchguid;
    }
    public void setDepartmentguid(String departmentguid) 
    {
        this.departmentguid = departmentguid;
    }

    public String getDepartmentguid() 
    {
        return departmentguid;
    }
    public void setYearoforder(Integer yearoforder) 
    {
        this.yearoforder = yearoforder;
    }

    public Integer getYearoforder() 
    {
        return yearoforder;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setOrderarea(String orderarea) 
    {
        this.orderarea = orderarea;
    }

    public String getOrderarea() 
    {
        return orderarea;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setProductname(String productname) 
    {
        this.productname = productname;
    }

    public String getProductname() 
    {
        return productname;
    }
    public void setSeedweight(BigDecimal seedweight) 
    {
        this.seedweight = seedweight;
    }

    public BigDecimal getSeedweight() 
    {
        return seedweight;
    }
    public void setPestweight(BigDecimal pestweight) 
    {
        this.pestweight = pestweight;
    }

    public BigDecimal getPestweight() 
    {
        return pestweight;
    }
    public void setFertweight(BigDecimal fertweight) 
    {
        this.fertweight = fertweight;
    }

    public BigDecimal getFertweight() 
    {
        return fertweight;
    }
    public void setOrderownerid(String orderownerid) 
    {
        this.orderownerid = orderownerid;
    }

    public String getOrderownerid() 
    {
        return orderownerid;
    }
    public void setOrderownername(String orderownername) 
    {
        this.orderownername = orderownername;
    }

    public String getOrderownername() 
    {
        return orderownername;
    }
    public void setPlantownerid(String plantownerid) 
    {
        this.plantownerid = plantownerid;
    }

    public String getPlantownerid() 
    {
        return plantownerid;
    }
    public void setPlantownername(String plantownername) 
    {
        this.plantownername = plantownername;
    }

    public String getPlantownername() 
    {
        return plantownername;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setOperatorid(String operatorid) 
    {
        this.operatorid = operatorid;
    }

    public String getOperatorid() 
    {
        return operatorid;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setLastupdate(Date lastupdate) 
    {
        this.lastupdate = lastupdate;
    }

    public Date getLastupdate() 
    {
        return lastupdate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("guid", getGuid())
            .append("farmerid", getFarmerid())
            .append("orderbatchguid", getOrderbatchguid())
            .append("departmentguid", getDepartmentguid())
            .append("yearoforder", getYearoforder())
            .append("name", getName())
            .append("orderarea", getOrderarea())
            .append("type", getType())
            .append("productname", getProductname())
            .append("seedweight", getSeedweight())
            .append("pestweight", getPestweight())
            .append("fertweight", getFertweight())
            .append("orderownerid", getOrderownerid())
            .append("orderownername", getOrderownername())
            .append("plantownerid", getPlantownerid())
            .append("plantownername", getPlantownername())
            .append("status", getStatus())
            .append("operatorid", getOperatorid())
            .append("createtime", getCreatetime())
            .append("code", getCode())
            .append("lastupdate", getLastupdate())
            .toString();
    }
}
